import { BasePlugin } from "./BasePlugin";
import { SyncResUtil } from "../util/SyncResUtil";
import { FastSyncResUtil } from "../util/FastSyncResUtil";
import { Util } from "../util/Util";

export class SyncRes extends BasePlugin {
    do(args: string[], cb: () => void): void {
        if (args[0] == "fast") {
            FastSyncResUtil.export(() => {
                console.log("fastsync ok");
                cb();
            });
        } else {
            SyncResUtil.export(() => {
                console.log("sync ok");
                cb();
            });
        }
    }
    getName(): string {
        return "资源同步"
    }
    getDesc(): string {
        return "将ne的资源，cocosstudio的资源，最终生成到res下";
    }
}